package com.eastfair.config.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 商贸对接地点
 * @ClassName AppointmentPlace
 * @Description TODO
 * @Author liuxiaobai
 * @Date 2021/9/2 2:25 下午
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AppointmentPlace {

    /**
     * 校验标识 获取单个开关
     */
    public interface VerifyGetByEntity {
    }

    /**
     * 标识id
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long flagId;
    /**
     * 地点code
     */
    @NotBlank(groups = {Switch.VerifyGetByEntity.class})
    private String code;
    /**
     * 地点中文名
     */
    private String name;
    /**
     * 地点英文名
     */
    private String enName;
    /**
     * 是否需要主办审核
     */
    private Integer isVerify;

}
